﻿// Learn more about F# at http://fsharp.net

module Program

open System
open System.Windows
open System.Windows.Controls
open System.Windows.Markup
open CalcViewModel

// Create the View and bind it to the View Model
let resourceLocater = new Uri("/DynamicFalc;component/mainwindow.xaml", UriKind.Relative);
let myView = Application.LoadComponent(resourceLocater) :?> Window
myView.DataContext <- new CalcViewModel()

// Application Entry point
[<STAThread>]
[<EntryPoint>]
let main(_) = (new Application()).Run(myView)